# coding: utf-8
from enum import Enum


class EnumBase(Enum):
    """
    枚举基类
    """

    @classmethod
    def values(cls):
        return [item.value for item in cls]

    @classmethod
    def keys(cls):
        return [item.name for item in cls]


class TestCaseFileTypes(EnumBase):
    """
    测试用例文件类型的枚举
    """
    YAML = "yaml"
    JSON = "json"
    YML = "yml"
    CSV = "csv"
    XLSX = "xlsx"
    XLS = "xls"


class TestModes(EnumBase):
    """
    测试模式的枚举
    """
    API = "api"
    WEB = "web"
    APP = "app"


class BrowserTypes(EnumBase):
    """
    浏览器类型枚举
    """
    Chromium = "chromium"
    Firefox = "firefox"
    WebKit = "webkit"
